<template>
	<view class="content">
		<!-- 开票结果 -->
		<view class="result-box">
			<!-- 成功图标 -->
			<view class="success-icon">
				<u-icon size="60" name="/static/success.png"></u-icon>
			</view>
			
			<!-- 结果文本 -->
			<view class="result-text">开票申请成功</view>
			
			<!-- 金额 -->
			<view class="amount">
				<text class="symbol">¥</text>
				<text class="number">100.00</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			// 设置导航栏
			uni.setNavigationBarTitle({
				title: '开票结果'
			})
			
			// 设置右上角文本
			uni.setNavigationBarColor({
				frontColor: '#000000',
				backgroundColor: '#ffffff'
			})
			
			// 设置导航栏右侧按钮文字
			let pages = getCurrentPages()
			let page = pages[pages.length - 1]
			page.$getAppWebview().setTitleNViewButtonStyle(0, {
				text: '完成',
				color: '#333'
			})
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		min-height: 100vh;
		background-color: #fff;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 120rpx;
        font-family: 'PINGFANG';
	}

	.result-box {
		text-align: center;
		
		.success-icon {
			width: 160rpx;
			height: 160rpx;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			margin: 0 auto 40rpx;
		}
		
		.result-text {
			font-size: 42rpx;
			font-weight: bold;
			color: #000000;
		}
		
		.amount {
			.symbol {
				font-size: 50rpx;
				color: #FC0A01;
                margin-right: 10rpx;
			}
			
			.number {
				font-size: 60rpx;
				font-weight: bold;
				color: #FC0A01;
			}
		}
	}
</style> 